package net.lab1024.sa.admin.module.business.quotation.domain.form;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

import lombok.Data;
import net.lab1024.sa.admin.module.business.quotation.domain.vo.QuotationItemsVO;
import net.lab1024.sa.admin.module.business.template.domain.vo.QuotationTemplateItemsVO;
import net.lab1024.sa.base.common.json.deserializer.FileKeyVoDeserializer;

/**
 * 报价信息 新建表单
 *
 * @Author zzx
 * @Date 2025-08-07 19:37:04
 * @Copyright zzx
 */

@Data
public class QuotationAddForm {

    @Schema(description = "报价名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "报价名称 不能为空")
    private String quotationName;

    @Schema(description = "报价长度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "报价长度 不能为空")
    private BigDecimal quotationLong;

    @Schema(description = "报价高度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "报价高度 不能为空")
    private BigDecimal quotationHeight;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "项目id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "项目id 不能为空")
    private Long projectId;

//    @Schema(description = "禁用状态", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "禁用状态 不能为空")
    private Integer disabledFlag;

    @Schema(description = "综合单价", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "综合单价 不能为空")
    private BigDecimal comprehensiveUnitPrice;

    @Schema(description = "计价方式")
    private Integer pricingType;

    @Schema(description = "图纸")
    @JsonDeserialize(using = FileKeyVoDeserializer.class)
    private String drawingPath;

    @Schema(description = "报价明细列表")
    @NotNull(message = "报价明细列表 不能为空")
    private List<QuotationItemsVO> list;

}